<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="QuestionnaireTemplate" targetNamespace="http://padsolutions.dnn.modules.questionnaire/Questionnaire.xsd" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns="http://padsolutions.dnn.modules.questionnaire/Questionnaire.xsd" xmlns:mstns="http://padsolutions.dnn.modules.questionnaire/Questionnaire.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop">
 <xs:element name="questionnaire">
  <xs:complexType>
   <xs:all>
    <xs:element name="questionnaireid" type="xs:string" nillable="true" minOccurs="0" />
    <xs:element name="title" type="xs:string" />
    <xs:element name="introduction" type="xs:string" nillable="true" minOccurs="0" />
    <xs:element name="thankyoutitle" type="xs:string" nillable="true" minOccurs="0" />
    <xs:element name="thankyoubody" type="xs:string" nillable="true" minOccurs="0" />
    <xs:element name="thankyoubutton" type="xs:string" nillable="true" minOccurs="0" />
    <xs:element name="questions">
     <xs:complexType>
      <xs:sequence>
       <xs:element name="question" maxOccurs="unbounded">
        <xs:complexType>
         <xs:all>
          <xs:element name="id" type="xs:string" />
          <xs:element name="issue" type="xs:string" minOccurs="1" maxOccurs="1" />
          <xs:element name="description" type="xs:string" minOccurs="1" nillable="true" maxOccurs="1" />
          <xs:element name="required" type="xs:boolean" minOccurs="1" nillable="false" default="false" maxOccurs="1" />
          <xs:element name="type">
           <xs:simpleType>
            <xs:restriction base="xs:string">
             <xs:enumeration value="Boolean" />
             <xs:enumeration value="Date" />
             <xs:enumeration value="Integer" />
             <xs:enumeration value="MultipleOption" />
             <xs:enumeration value="SingleOption" />
             <xs:enumeration value="String" />
             <xs:enumeration value="Text" />
             <xs:enumeration value="TextBox" />
             <xs:enumeration value="Html" />
             <xs:enumeration value="Single" />
             <xs:enumeration value="Grade" />
             <xs:enumeration value="Hidden" />
             <xs:enumeration value="Picture" />
             <xs:enumeration value="File" />
            </xs:restriction>
           </xs:simpleType>
          </xs:element>
          <xs:element name="size" type="xs:integer" minOccurs="1" nillable="true" maxOccurs="1" />
          <xs:element name="mintext" type="xs:string" minOccurs="1" nillable="true" maxOccurs="1" />
          <xs:element name="maxtext" type="xs:string" minOccurs="1" nillable="true" maxOccurs="1" />
          <xs:element name="default" type="xs:string" minOccurs="1" nillable="true" maxOccurs="1" />
          <xs:element name="options" minOccurs="0">
           <xs:complexType>
            <xs:sequence>
             <xs:element name="option" maxOccurs="unbounded">
              <xs:complexType>
               <xs:sequence>
                <xs:element name="value" type="xs:string" />
                <xs:element name="text" type="xs:string" />
               </xs:sequence>
              </xs:complexType>
             </xs:element>
            </xs:sequence>
           </xs:complexType>
          </xs:element>
          <xs:element name="filterable" type="xs:boolean" minOccurs="0" nillable="0" maxOccurs="1" />
          <xs:element name="searchable" type="xs:boolean" minOccurs="0" nillable="0" maxOccurs="1" />
         </xs:all>
        </xs:complexType>
       </xs:element>
      </xs:sequence>
     </xs:complexType>
    </xs:element>
   </xs:all>
  </xs:complexType>
 </xs:element>
</xs:schema>